package com.schoolMall.dao;

import com.schoolMall.domain.Shop;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author:zyh
 * @Time:2021-08-28-23:19
 * @email:1269231889@qq.com
 */

public interface ShopDao {
    /**
     * 创建新店铺
     *
     * @param shop
     * @return
     */
    int insertShop(Shop shop);

    /**
     * 更新店铺信息
     *
     * @param shop
     * @return
     */
    int updateShop(Shop shop);

    /**
     * 通过商铺id查询商铺
     *
     * @param shopId
     * @return
     */
    Shop queryByShopId(long shopId);

    /**
     * 根据条件查询商铺列表
     *
     * @param shop
     * @return
     */
    List<Shop> queryShopByShopCondition(@Param("shop") Shop shop);
}
